//
//  YGHttpManager.h
//  research
//
//  Created by 章鱼 on 17/3/28.
//  Copyright © 2017年 simon. All rights reserved.
//

#import "YGObject.h"
#import "VBHTTPManager.h"

@interface YGHttpManager : YGObject

@property (nonatomic, strong) VBHTTPManager *httpManager;
@property (nonatomic, strong) AFHTTPSessionManager *sessionManager;

+ (id)defaultManager;

//1.首页banner接口
- (void)fetchGetBannersuccess:(requestSuccessBlock)successHandler
                      failure:(requestFailureBlock)failureHandler;

//2.新闻列表
- (void)fetchGetNewsListWithPage:(NSInteger )page
                        Pagesize:(NSInteger )pagesize
                         success:(requestSuccessBlock)successHandler
                         failure:(requestFailureBlock)failureHandler;


//3.新闻详情
- (void)fetchGetNewsInfoWithNewsId:(NSInteger )newsId
                           success:(requestSuccessBlock)successHandler
                           failure:(requestFailureBlock)failureHandler;

//4.问卷列表
- (void)fetchGetQueslistWithPage:(NSInteger )page
                        Pagesize:(NSInteger )pagesize
                           success:(requestSuccessBlock)successHandler
                           failure:(requestFailureBlock)failureHandler;

//5.问卷详情
- (void)fetchGetQuestInfoWithQuestionId:(NSInteger )questionId
                          success:(requestSuccessBlock)successHandler
                         failure:(requestFailureBlock)failureHandler;

//6.问卷答题
- (void)fetchGetQuestCollectWithToken:(NSString *)token
                               userId:(NSString *)userId
                           questionId:(NSString *)questionId
                                success:(requestSuccessBlock)successHandler
                                failure:(requestFailureBlock)failureHandler;

//7.问卷收藏列表查询
- (void)fetchGetUserCollectdWithToken:(NSString *)token
                               userId:(NSString *)userId
                                 Page:(NSInteger )page
                             Pagesize:(NSInteger )pagesize
                              success:(requestSuccessBlock)successHandler
                              failure:(requestFailureBlock)failureHandler;

//8.个人信息查询
- (void)fetchGetUserInfoWithToken:(NSString *)token
                               userId:(NSString *)userId
                              success:(requestSuccessBlock)successHandler
                              failure:(requestFailureBlock)failureHandler;

//9.修改密码
- (void)fetchGetUserModifyPasswdWithToken:(NSString *)token
                            userId:(NSString *)userId
                             newPasswd:(NSString *)newPasswd
                            oldPasswd:(NSString *)oldPasswd
                           success:(requestSuccessBlock)successHandler
                           failure:(requestFailureBlock)failureHandler;

//10.登录
- (void)fetchGetUserLoginWithuserName:(NSString *)userName
                             password:(NSString *)password
                              success:(requestSuccessBlock)successHandler
                              failure:(requestFailureBlock)failureHandler;

//11.注册
- (void)fetchGetUserRegisterWithuserName:(NSString *)userName
                             password:(NSString *)password
                                email:(NSString *)email
                                phone:(NSString *)phone
                              success:(requestSuccessBlock)successHandler
                              failure:(requestFailureBlock)failureHandler;

//12.判断是否登录
- (void)fetchGetUserIsloginWithtoken:(NSString *)token
                                 success:(requestSuccessBlock)successHandler
                                 failure:(requestFailureBlock)failureHandler;

//13.修改个人信息
- (void)fetchGetUserSettingWithtoken:(NSString *)token
                               userId:(NSString *)userId
                               nickname:(NSString *)nickname
                               phone:(NSString *)phone
                               email:(NSString *)email
                               address:(NSString *)address
                               gender:(NSString *)gender
                             success:(requestSuccessBlock)successHandler
                             failure:(requestFailureBlock)failureHandler;

//14.微信登录
- (void)fetchGetUserWXLoginWithcode:(NSString *)code
                             success:(requestSuccessBlock)successHandler
                             failure:(requestFailureBlock)failureHandler;

//15.忘记密码
- (void)fetchGetPassWordWithWithphone:(NSString *)phone
                                   email:(NSString *)email
                                   newPasswd:(NSString *)newPasswd
                                 success:(requestSuccessBlock)successHandler
                                 failure:(requestFailureBlock)failureHandler;






@end
